﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Net.Mail;
using System.Configuration;

namespace GuiaVinum.Model
{
    public class AccountMembershipService
    {
        public static void SendConfirmationEmail(string userName, string email, string confirmationUrl)
        {
            string from = ConfigurationManager.AppSettings["ConfirmationEmailFromAccount"];

            var message = new MailMessage(from, email)
            {
                Subject = "Please confirm your account",
                Body = confirmationUrl
            };

            var client = new SmtpClient { EnableSsl = true };
            client.Send(message);

        }


    }
}